package com.txunda.zhuohired.aty.manage.my;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;
import com.txunda.zhuohired.R;
import com.txunda.zhuohired.base.BaseAty;
import com.txunda.zhuohired.dialog.BuyDialog;

/**
 * 创建人： Txd_Cjh
 * 创建时间： 2018/3/14 14:33
 * 功能描述：广告位购买
 * 联系方式：jiahuanchen@126.com
 */

public class ManageAdvertisBuyAty extends BaseAty {
    /**
     * 标题
     */
    @ViewInject(R.id.tv_layout_white_center)
    private TextView tv_layout_white_center;

    @ViewInject(R.id.tv_manage_buy_news)
    private TextView tv_manage_buy_news;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        showStatusBar(R.id.layout_white_head);
        tv_layout_white_center.setText("广告位购买");
    }

    @Override
    @OnClick({R.id.tv_manage_buy_sure,R.id.ll_manage_buy_news})
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()) {
            case R.id.tv_manage_buy_sure://确定购买

                break;
            case R.id.ll_manage_buy_news://选择时间
                BuyDialog buyDialog = new BuyDialog(this, new BuyDialog.ManageBuyListener() {

                    @Override
                    public void onManageBuy(String type) {
                        tv_manage_buy_news.setText(type);
                    }
                });
                buyDialog.show();
                break;
        }
    }

    @Override
    protected int getLayoutResId() {
        return R.layout.aty_manage_advertis_buy;
    }

    @Override
    protected void initialized() {

    }

    @Override
    protected void requestData() {

    }
}
